package com.example.blog.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class blog {

    /**
     * id;
     * title;标题
     * content;内容
     * firstPicture;首图
     * flag;标记
     * view;浏览次数
     * aprreciation;赞赏开启
     * shareStatement;版权开启
     * commentabled;评论开启
     * published;发布
     * recommened;是否推荐
     * creatTime;创建时间
     * updateTime;更新时间
     */
    private Integer id;
    private String title;
    private String content;
    private String firstPicture;
    private String flag;
    private Integer view;
    private boolean aprreciation;
    private boolean shareStatement;
    private boolean commentabled;
    private boolean published;
    private boolean recommened;
    private Date creatTime;
    private Date updateTime;
    private Integer type_id;
    private Integer user_id;
    private type type;
    private user user;
//    private List<tag> tags;
}
